package Tween
{
	import Easing.Linear;
	
	import Plugin.TweenObjectPlugin;
	
	public class BlinkTween extends TweenObjectPlugin
	{
		public var interval:int=10;
		public function BlinkTween()
		{
			super();
		}
		
		override protected function _update():void
		{
			if(time==0)return;
			
			var progress:int=ticks%(2*interval);
			
			if(progress<=interval)
			{
				go.obj.alpha=Linear.ease(progress,0,1-0,interval);
			}
			else
			{
				go.obj.alpha=Linear.ease(progress-interval,1,0-1,interval);
			}
		}
	}
}